<template>
  <div class="content">
    <div class="head">
      <mt-header class="common-header" title="视频列表">
        <mt-button icon="back" slot="left" @click="$router.go(-1)"></mt-button>
      </mt-header>
    </div>
    <div id="video">站位</div>
    <div class="content-text-explain">
      <div class="content-text">
        <h3>盖碗茶艺手法教学</h3>
        <ul>
          <li class="love" @click="love">
            <img src="../../../assets/image/love.png" alt />
            <span>99w</span>
          </li>
          <li class="watch">
            <img src="../../../assets/image/watch.png" alt />
            <span>999w</span>
          </li>
        </ul>
      </div>
      <div class="explain">课程简介课程简介课程简介课程简介课程简介课程简介课程简 介课程简介课程简介</div>
    </div>
    <div class="content-footer">
      <h2>目录</h2>
      <div class="content-footer-text" v-for="item in 3" :key="item">
        <div class="title" @click="goVideo()">
          <em>{{item}}</em>
          盖碗茶艺手法教学盖碗茶艺手法教学手法教学
        </div>
        <div class="views">
          <img src="../../../assets/image/watch.png" alt />
          <span>999w</span>
        </div>
      </div>
      <div class="no-more">没有更多了</div>
    </div>
  </div>
</template>
<script>
export default {
  name: "CouresList",
  data() {
    return {};
  },
  methods: {
    goVideo() {
        this.$router.push({name:"HomeCourseVideo"})
    },
    love() {
      console.log(12121);
    },
  },
};
</script>
<style lang="scss" scoped>
// 顶部
.common-header {
  background: #f8f8f7;
  color: #101010;
  font-size: 0.8rem;
}
.content {
  background: #d1ddf4;
}
.content-text-explain {
  background: #ffffff;
}
#video {
  width: 100%;
  height: 11.25rem;
  background-color: blueviolet;
}
.content-text {
  display: flex;
  width: 16.15rem;
  margin: auto;
  padding: 0.9rem 0;
  justify-content: space-between;
  align-items: center;
  h3 {
    margin: 0;
    height: 0.78rem;
    line-height: 0.78rem;
    overflow: hidden;
    font-size: 0.8rem;
    color: #101010;
  }
  ul {
    margin: 0;
    padding: 0;
    display: flex;
    vertical-align: middle;
    li {
      color: #b5b5b5;
      vertical-align: middle;
      span {
        font-size: 0.6rem;
      }
    }
    li.love {
      margin-right: 0.87rem;
    }
    li.love img {
      width: 0.62rem;
      margin-right: 0.4rem;
    }
    li.watch img {
      width: 0.75rem;
      margin-right: 0.4rem;
    }
  }
}

.explain {
  width: 16.15rem;
  margin: auto;
  padding-bottom: 0.45rem;
  font-size: 0.6rem;
  color: #b5b5b5;
}

// 目录
.content-footer {
  background: #ffffff;
  margin-top: 0.5rem;
  h2 {
    width: 1.9rem;
    margin: auto;
    margin-bottom: 1.8rem;
    font-size: 0.8rem;
    color: #101010;
    border-bottom: 0.12rem solid #3c7c45;
    padding: 0.5rem 0.12rem 0.35rem 0.12rem;
    box-sizing: border-box;
  }
  .content-footer-text {
    margin-bottom: 1.32em;

    .views {
      width: 16.15rem;
      margin: auto;
      text-align: right;
    }
    .views img {
      width: 0.75rem;
      height: 0.47rem;
      margin-right: 0.4rem;
    }
    .views span {
      font-size: 0.6rem;
      color: #b5b5b5;
      text-align: center;
    }
  }
  .title {
    width: 16.15rem;
    margin: auto;
    font-size: 0.4rem;
    color: #101010;

    em {
      display: inline-block;
      width: 1.1rem;
      height: 1.1rem;
      line-height: 1.1rem;
      background-color: #3c7c45;
      border-radius: 0.25rem;
      font-size: 0.4rem;
      color: #ffffff;
      text-align: center;
      margin-right: 0.5rem;
    }
  }
}

.no-more {
  color: #b5b5b5;
  font-size: 0.6rem;
  text-align: center;
  margin-top: 0.4rem;
  margin-bottom: 1.9rem;
}
</style>